package com.example.demo.study;

import java.time.LocalDate;
import java.util.Date;
import java.util.Random;

public class study02 {

    public static void main(String[] args) {
//        变量类型
//        String name = "张本";
//        System.out.println("姓名：" + name);
//        int age = 23;
//        System.out.println("年龄：" + age);
//        int myAge = 40;
//        myAge=30;
//        System.out.println("年龄：" + myAge);
//        float height = 1.75f;
//        System.out.println("身高：" + height);
//        double weight = 65.5;
//        System.out.println("体重：" + weight);
//        Random random = new Random();
//        int cardNo = 10000000 + random.nextInt(90000000);
//        System.out.println("卡号：" + cardNo);

//        Date date = new Date();
//        System.out.println(date);
        LocalDate localDate = LocalDate.now();
        System.out.println(localDate.getMonthValue()+"月"+localDate.getDayOfMonth()+"日");

    }
}
